<template>
    <div style="border: 1px solid red;padding: 5px;">
        我是子组件
        <span style="color: red;">{{ props.parentData1 }}</span>
    </div>
    <VGrand/>
</template>

<script setup>
import { ref } from 'vue';
import VGrand from './VGrand.vue';
const props = defineEmits({
    parentData1:String
})
</script>

<style scoped>

</style>